import Vue from 'vue'
import Vuex from 'vuex'
import vuexPersist from "vuex-persist"
const vuexLocal = new vuexPersist({
    storage: window.sessionStorage
})
Vue.use(Vuex)

export default new Vuex.Store({
    state: {
        active: ""
    },
    mutations: {
        select(state, e) {
            state.active = e
        }
    },
    actions: {

    },
    plugins: [vuexLocal.plugin]
})